package com.spa.application.query.shop;

import com.spa.application.query.PageQuery;
import com.spa.infrastructure.annotation.DateTimeStr;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ShopWithdrawQuery extends PageQuery {

    @NotNull(message = "门店提现记录ID不能为空！", groups = {ShopWithdrawQuery.QueryById.class})
    private Long shopWithdrawId;

    @NotBlank(message = "提现申请时间不能为空！", groups = {QueryList.class})
    @DateTimeStr(format = "yyyy-MM", message = "申请时间格式错误，正确格式为：yyyy-MM", groups = {QueryList.class})
    private String applyTime;

    public interface QueryById {}
    public interface QueryList {}
}
